package com.feilx.changggou.order.service.impl;

import com.changgou.bean.PageVo;
import com.changgou.bean.Query;
import com.changgou.bean.QueryCondition;
import com.changgou.pojo.order.TbPreferentialEntity;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


import com.feilx.changggou.order.dao.TbPreferentialDao;
import com.feilx.changggou.order.service.TbPreferentialService;


@Service("tbPreferentialService")
public class TbPreferentialServiceImpl extends ServiceImpl<TbPreferentialDao, TbPreferentialEntity> implements TbPreferentialService {

    @Override
    public PageVo queryPage(QueryCondition params) {
        IPage<TbPreferentialEntity> page = this.page(
                new Query<TbPreferentialEntity>().getPage(params),
                new QueryWrapper<TbPreferentialEntity>()
        );

        return new PageVo(page);
    }

}
